package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsWechatMatterTableMapper;
import com.hckjsec.cloud.domain.AppletsWechatMatterTable;
import com.hckjsec.cloud.service.IAppletsWechatMatterTableService;

/**
 * 事项材料-格下载Service业务层处理
 * 
 * @author cyt
 * @date 2022-02-15
 */
@Service
public class AppletsWechatMatterTableServiceImpl implements IAppletsWechatMatterTableService 
{
    @Autowired
    private AppletsWechatMatterTableMapper appletsWechatMatterTableMapper;

    /**
     * 查询事项材料-格下载
     * 
     * @param id 事项材料-格下载ID
     * @return 事项材料-格下载
     */
    @Override
    public AppletsWechatMatterTable selectAppletsWechatMatterTableById(Long id)
    {
        return appletsWechatMatterTableMapper.selectAppletsWechatMatterTableById(id);
    }

    /**
     * 查询事项材料-格下载列表
     * 
     * @param appletsWechatMatterTable 事项材料-格下载
     * @return 事项材料-格下载
     */
    @Override
    public List<AppletsWechatMatterTable> selectAppletsWechatMatterTableList(AppletsWechatMatterTable appletsWechatMatterTable)
    {
        return appletsWechatMatterTableMapper.selectAppletsWechatMatterTableList(appletsWechatMatterTable);
    }

    /**
     * 新增事项材料-格下载
     * 
     * @param appletsWechatMatterTable 事项材料-格下载
     * @return 结果
     */
    @Override
    public int insertAppletsWechatMatterTable(AppletsWechatMatterTable appletsWechatMatterTable)
    {
        return appletsWechatMatterTableMapper.insertAppletsWechatMatterTable(appletsWechatMatterTable);
    }

    /**
     * 修改事项材料-格下载
     * 
     * @param appletsWechatMatterTable 事项材料-格下载
     * @return 结果
     */
    @Override
    public int updateAppletsWechatMatterTable(AppletsWechatMatterTable appletsWechatMatterTable)
    {
        return appletsWechatMatterTableMapper.updateAppletsWechatMatterTable(appletsWechatMatterTable);
    }

    /**
     * 批量删除事项材料-格下载
     * 
     * @param ids 需要删除的事项材料-格下载ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatMatterTableByIds(Long[] ids)
    {
        return appletsWechatMatterTableMapper.deleteAppletsWechatMatterTableByIds(ids);
    }

    /**
     * 删除事项材料-格下载信息
     * 
     * @param id 事项材料-格下载ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatMatterTableById(Long id)
    {
        return appletsWechatMatterTableMapper.deleteAppletsWechatMatterTableById(id);
    }
}
